import { useSearchParams } from "umi"
const Child = () => {
    const [searchParams, setSearchParams] = useSearchParams()
    let params = searchParams.get('name')
    // console.log(params) //李雷
    // console.log(searchParams.getAll('name')) // ['李雷']
    // console.log(searchParams.toString()) //name=%E6%9D%8E%E9%9B%B7
    return (
        <>
            <h1>这是home下面的子路由child</h1>
            <h2>query参数: {params}</h2>
        </>
    )
}
export default Child